#! /usr/bin/env node

const shell = require('shelljs')
const program = require('commander')


program
  .version('0.0.1')
  .option('-m, --module [type]', 'Add an [module] dircectory of program', 'test')
  .parse(process.argv)

if (program.module) {
  shell.mkdir(program.module)
  shell.cd(program.module)
  createEntity(program.module)
  console.log('%s module has created', program.module)
}

if (!process.argv[2]) {
    program.help()
    console.log()
}

function createEntity(filename) {
  shell.touch(`${program.module}.entity.ts`)
}

